import os
from mutagen.mp3 import MP3

def calculate_duration(mp3_file):
  audio = MP3(mp3_file)
  duration = audio.info.length
  return duration



if __name__ == '__main__':
    mps_file_path = "E:5ca37cbc-fdfb-11ee-946b-74563ce1e9ac_1.wav"
    duration = calculate_duration(mps_file_path)
    print(duration)